package com.wmw.Animation;

import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnticipateInterpolator;

public class ViewAction {
	/**
	 * 展现菜单动画效果
	 * 
	 * @param view
	 * @param runnable
	 */
	public static void startSpringMenuAnimations(View view) {
		Animation shrinkOut = new ShrinkAnimationOut(300);
		Animation growOut = new EnlargeAnimationOut(300);
		shrinkOut.setInterpolator(new AnticipateInterpolator(2.0F));
		shrinkOut.setAnimationListener(new Animation.AnimationListener() {

			public void onAnimationEnd(Animation animation) {
				// TODO Auto-generated method stub
				// Register.this.imageViewPlus.clearAnimation();
			}

			public void onAnimationRepeat(Animation animation) {
				// TODO Auto-generated method stub

			}

			public void onAnimationStart(Animation animation) {
				// TODO Auto-generated method stub

			}
		});

		view.startAnimation(growOut);
	}
}
